package com.example.day2.live;

import androidx.lifecycle.MutableLiveData;

import com.example.day2.entity.GiftResult;
import com.example.day2.entity.NormalResult;
import com.example.day2.mvvm.base.BaseViewModel;
import com.example.day2.mvvm.base.GuanZhuParam;

public class LiveViewModel extends BaseViewModel<LiveRepo> {
    public MutableLiveData<NormalResult> GuanSuccess =  new MutableLiveData<>();
    public MutableLiveData<String> GuanFail = new MutableLiveData<>();
    public void getNoGuanzhu(GuanZhuParam guanZhuParam){
        repo.getNoGuanzhu(guanZhuParam,GuanSuccess,GuanFail);
    }
    public MutableLiveData<NormalResult> GuaSuccess =  new MutableLiveData<>();
    public MutableLiveData<String> GuaFail = new MutableLiveData<>();
    public void getGuanzhu(GuanZhuParam guanZhuParam){
        repo.getGuanzhu(guanZhuParam,GuaSuccess,GuaFail);
    }


    public MutableLiveData<GiftResult> GiftSuccess =  new MutableLiveData<>();
    public MutableLiveData<String> GiftFail = new MutableLiveData<>();
    public void getGift(){
        repo.getGift(GiftSuccess,GiftFail);
    }
    @Override
    public LiveRepo createRepo() {
        return new LiveRepo();
    }
}
